home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-18 | 3.2 KB | 77 lines | [TEXT/MPS ] |
- -----------------------------------------------
- MPW Access for Macintosh Programmer’s Assistant
- -----------------------------------------------
-
- About MPW Access for Macintosh Programmer’s Assistant
- -----------------------------------------------------
- The scripts in this folder allow you to access Macintosh Programmer’s
- Assistant information from the MPW Shell. Using these scripts,
- you can look up any term in the Macintosh Programmer’s Assistant
- databases or retrieve the template for a toolbox routine.
-
-
- Installing MPW Access for Macintosh Programmer’s Assistant
- ----------------------------------------------------------
- The folder that contains this file should also contain two
- other files:
-
- • A "UserStartup•MPTA" MPW script
- • A "MPTA_MPWAccess" MPW script
-
- To install these files, take the following steps:
-
- 1. Quit the MPW Shell if is currently running.
-
- 2. Drag the "UserStartup•MPTA" file into the "{MPW}Startup Items"
- folder.
-
- 3. Drag the "MPTA_MPWAccess" file into the "{MPW}Scripts"
- folder.
-
- 4. Start up the MPW Shell. During the startup process, you will
- see a Standard File dialog box asking you for the location
- of the QuickView browser. (QuickView is the search and
- display engine for Macintosh Programmer’s Assistant.)
- Locate QuickView and click the "Here It Is" button. The
- location will be stored in a file called "MPTA_FullPathName"
- for use during subsequent MPW startups.
-
- 5. When the startup script finishes, it will have installed
- a new menu called "Info". That menu contains four commands,
- “Home Page” (for going to the Macintosh Programmer’s Assistant
- home page), "Look up Routine" (for looking up a toolbox or
- library routine), "Look up MPW Command" (for looking up an
- MPW command) and "Get Template" (for returning the template
- of a toolbox or library routine).
-
- 6. As a test, type "NewWindow" on the MPW worksheet, highlight
- just the word "NewWindow", and select the "Look up Routine"
- item in the Info Menu. MPW will send an Apple Event to the
- QuickView application, which will open and bring the page
- for the NewWindow toolbox routine to the front.
-
- 7. As another test, type "AddMenu" on the MPW worksheet, highlight
- just the word "AddMenu", and select the "Look up MPW Command" item
- in the Info Menu. MPW will send an Apple Event to the QuickView
- application, which will open and bring the page for the
- AddMenu MPW command to the front.
-
- 8. To test the template retrieval, type another toolbox call
- into the worksheet (for example "NewCWindow"), highlight
- the call name, and select the "Get Template" item on the
- Info Menu. The template for the function call will be
- retrieved and will replace the current selection. (Note
- that the templates are provided only for Toolbox functions,
- and are not available for MPW commands.)
-
- That’s it! Subsequent startups of MPW will automatically use
- the QuickView application that you selected, and the "Look up Routine",
- "Look up MPW Command", "Get Template", and "Home Page" functions will
- automatically be available.
-
- There is one more thing you need to be aware of:
-
- • If you move the QuickView application from its original
- location, MPW will be unable to find it and you will again be
- prompted to locate QuickView. After you locate it, everything
- will work again.